package demo2;

// Light.java
public class Light {
    private String location = "客厅";

    public void on() {
        System.out.println(location + "的灯打开了");
    }

    public void off() {
        System.out.println(location + "的灯关闭了");
    }
}
